<script setup lang="ts">
import { darkTheme } from 'naive-ui';
import { ref } from 'vue';

const theme = ref<typeof darkTheme | null>(null);
</script>

<template>
  <n-config-provider :theme="theme">
    <n-card>
      <n-space>
        <n-button @click="theme = darkTheme"> Dark </n-button>
        <n-button @click="theme = null"> Light </n-button>
      </n-space>
    </n-card>
  </n-config-provider>
</template>

<style scoped>
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
